package com.cjl.learn.builder.way2.entity;

/**
 * Created by Enzo Cotter on 2019-08-23.
 */
public class Toy implements Cloneable {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Toy clone() {
        Toy clone = null;
        try {
            clone = (Toy) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return clone;
    }
}
